<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />

<!-- blueprint CSS framework -->
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/all.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery.jscrollpane.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery.jscrollpane2.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/select.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/supersized.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/error.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/extra.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/menu.css" />

<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
<![endif]-->

<!--[if lt IE 7.]>
<script defer type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/pngfix.js"></script>
<![endif]-->

<!-- Provides a js global variable for baseUrl -->
<?php Yii::app()->clientScript->registerScript('helpers', 'baseUrl = '.CJSON::encode(Yii::app()->baseUrl).';'); ?>

<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/mousewheel.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/supersized.3.1.3.core.js"></script>
<script type="text/javascript">  
	jQuery(function($){
		$.supersized({
			//Background image
			slides	:  [ { image : '<?php echo Yii::app()->request->baseUrl; ?>/images/bg.jpg' } ]					
		});
	});
</script>

<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>
<?php if (!Yii::app()->user->isGuest) { ?>
<div id="peel">
    <div id="visit"><a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/visit-ekos.gif" alt="" /></a></div>
    <div id="login-status">
    <?php if (!Yii::app()->user->isGuest) { ?>
		<div>Welcome, <b><?php echo Yii::app()->user->getName(); ?></b></div>
	<?php } ?>
	</div>
</div>
<?php } ?>

<div id="content-wrapper"><!-- page begins -->

<h1 id="logo"><a href="<?php echo Yii::app()->request->baseUrl; ?>">Ekos Auctions</a></h1>

<?php if (!Yii::app()->user->isGuest) { ?>
<!-- 
<div id="nav-icons">
    <ul>
        <li><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/cart-plus.png" alt=""/></li>
        <li><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/s-plus.png" alt="" /></li>
        <li><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/comments.png" alt="" /></li>
    </ul>
</div> -->

<div id="active-page">
<div id="my-sites-contents">

<div id="ms-links">
    <div id="ms-links4"><a href="<?php echo Yii::app()->request->baseUrl ?>"><?php echo CHtml::image(Yii::app()->request->baseUrl . '/images/home.gif'); ?></a></div>
    <div id="ms-links5"><a href="<?php echo Yii::app()->request->baseUrl ?>/site/logout"><?php echo CHtml::image(Yii::app()->request->baseUrl . '/images/logout.gif'); ?></a></div>
	<?php if (Yii::app()->user->userType == 'b') { ?>
	<div id="ms-links6"><a href="<?php echo Yii::app()->request->baseUrl ?>/iniAuction/buyer"><img src="<?php echo Yii::app()->request->baseUrl ?>/images/initiate-button.gif" alt="" /></a></div>
	<?php } ?>
</div><!-- End Ms Links -->
<?php } ?>

<div id="msg-header">blha</div>

<?php echo $content; ?>

<?php if (!Yii::app()->user->isGuest) { ?>
</div>
</div>

<div id="telvent"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/telvent.gif" alt="" /></div>
<div id="copyright">Copyrighted by Go Energies, LLC</div>
<div id="footer-logo"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/ekos-logo.gif" alt="" /></div>
<?php } ?>

</div><!-- page -->

</body>
</html>